package com.yy.service.ForegroundService;

import com.yy.config.R;
import com.yy.domain.Account;
import com.yy.domain.User;


public interface IUserService {
    R toLogin(Account account);
    User selectUserById(int id) ;
    int updateUserById(User user);
    int selectCountById(Integer id);
    int deleteUserById(Integer id);
    int restAccountById(Integer id);
    String insertUserInfo(User user);
    int insertUserToAccount(Account account) ;
    int selectCartCountById(int id);
    int selectCommentById(int id);
    Account selectAccountById(int id);
    Object queryUser(Account account);
    Boolean outLogin(String userId);

    User findUserByEmail(String email);

    Account findUserByUsername(String username);

    Boolean updateUserAccountUser(Account user);

    User selectUserBymail(String mailTo);

    Account selectAccountByUserName(String username);
}
